
<!-- BEGIN:main -->
<script language="javascript" type="text/javascript">


    function showDuLieu(action)
    {
       
         var BEP_ID = $('#select-choice-1');
         var THANG = $('#select-native-17');
         var TUAN=$('#select-native-16');

        var dataString = 'hdAction=' + action;
        dataString += '&BEP_ID=' + BEP_ID.val();
        dataString += '&THANG=' + THANG.val();
          dataString += '&TUAN=' + TUAN.val();
           
        
        $.ajax({
            url: '.?com=com_thongke_kiemke',
            type: "POST",
            data: dataString,
            cache: false,
            success: function(data) {
                   // alert(data);
                document.getElementById("table-custom-2").innerHTML=data;     
            }
        });
    

  }
            
 
</script> 

<form method="post" name="phpForm" id="phpForm" action="">
    <!--biến giá trị hành động-->
    <input type="hidden" name="hdAction" id="hdAction" />

    <div align="center" data-role="content" id="contentConfirmation" name="contentConfirmation" >  
        <div data-role="collapsible" data-inset="false" data-theme="b" >
            <h3 style="padding-top: 0px;">THỐNG KÊ THEO TUẦN</h3>
            <ul data-role="listview">

                <li>
                    <div data-role="fieldcontain" >
                        <label for="select-native-17">Chọn bếp:</label>
                        <select name="select-choice-1" id="select-choice-1"  onchange="showDuLieu('thongketuan')">
                             <!-- BEGIN:bep_ --> 
                            <option value="{BEP_ID}">{BEP_TEN_BEP}</option>
                            <!-- END:bep_ -->
                        
                    </select>
                    </div>
                    <div data-role="fieldcontain" >
                        <label for="select-native-17">Chọn tháng:</label>
                        <select name="select-native-17" id="select-native-17" onchange="showDuLieu('thongketuan')">
                            <!-- BEGIN:thang_ -->
                            {THANG}
                            <!-- END:thang_ -->
                        </select>
                    </div>
                    <div data-role="fieldcontain" >
                        <label for="select-native-17">Chọn tuần:</label>
                        <select name="select-native-16" id="select-native-16" onchange="showDuLieu('thongketuan')">
                            <!-- BEGIN:tuan -->
                            {TUAN}
                            <!-- END:tuan -->
                        </select>
                    </div>
                    <table data-role="table" id="table-custom-2" data-mode="columntoggle" class="ui-body-d ui-shadow table-stripe ui-responsive" data-column-btn-theme="b" data-column-btn-text="Chọn cột hiển thị" data-column-popup-theme="a">
                             <!-- BEGIN:thongke -->
                           <thead>
                        <tr class="ui-bar-d">
                          <th data-priority="5">Bếp</th>
                          <th data-priority="3">Tuần</th>
                          <th data-priority="5">Tháng</th>
                           <th data-priority="5">Từ ngày đến ngày</th>
                          <th data-priority="1">Tổng tiền</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr>
                         <td>{BEP_ID}</td>
                          <td>{TUAN}</td>
                          <td>{THANG}</td>
                           <th >{TUNGAY} - {DENNGAY}</th>
                          <td>{TONGTIEN} (VNĐ)</td>
                        </tr>

                      </tbody>
                            <!-- END:thongke -->
                    </table>
                </li>                         

            </ul>
        </div>
     

        



    </div>
    <div data-role="footer" data-theme="b" data-position="fixed">
        <div class="ui-bar">
            <a href="./?com=com_danhmuc" data-role="button" data-icon="refresh" data-theme="b" style="float:right;">Trở lại</a>
        </div>
    </div>   
</form>


<!-- END:main -->
